package org.jeecg.modules.zhima.center.enums;

public enum PayStatus {

    WAIT_PAY(0, "待付款"),
    PAY_SUCCESS(1, "付款成功"),
    PAY_DELETE(-1, "支付取消");

    public Integer CODE;

    public String VALUE;

     PayStatus(Integer code, String value){
        this.CODE = code;
        this.VALUE = value;
    }

    public static PayStatus get(Integer code){
         switch (code){
             case 0:
                 return WAIT_PAY;
             case 1:
                 return PAY_SUCCESS;
             case -1:
                 return PAY_DELETE;
             default:
                 return WAIT_PAY;
         }
    }
}
